if [[ -f $1.m ]]; then
    nvim $1.m
else 
    cp template.m $1.m
    nvim $1.m
fi
